import Vue from 'vue'
import App from './App'
import navbar from "@/components/navbar/navbar.vue"
import zwNavbar from "@/components/zhouWei-navBar/components/zhouWei-navBar/index.vue"
import hxnavbar from "@/components/hx-navbar.vue"

import iIcon from '@/components/my-icon/i-icon.vue'
import http from '@/common/http/'
Vue.component('iIcon', iIcon)
Vue.component('navbar',navbar)
Vue.component('zw-navbar',zwNavbar)
Vue.component('hx-navbar',hxnavbar)

Vue.config.productionTip = false
Vue.prototype.$http = http
App.mpType = 'app'
const {platform,statusBarHeight} = uni.getSystemInfoSync()
let height = statusBarHeight +4 //ios 24px
if (platform.toLowerCase() == "android" ){
  height +=4 //android 28px
}
Vue.prototype.$navHeight = height+ 44 + "px";

const app = new Vue({
  ...App
})
app.$mount()
